﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Jzy.Model.DocManger
{
    public partial class DocumentInfo
    {
        public const string TABLE_NAME = "Document";
        public const string INSERT_SQL = "insert into Document ( [ID], [Name], [DirID], [Content], [CreatorID], [CreatorName], [InputTime], [ClickCount], [Source], [Code], [Remark], [Orders], [SmallImage], [BigImage]) values ( @ID, @Name, @DirID, @Content, @CreatorID, @CreatorName, @InputTime, @ClickCount, @Source, @Code, @Remark, @Orders, @SmallImage, @BigImage)";
        public const string UPDATE_SQL = "update Document set  [ID] = @ID, [Name] = @Name, [DirID] = @DirID, [Content] = @Content, [CreatorID] = @CreatorID, [CreatorName] = @CreatorName, [InputTime] = @InputTime, [ClickCount] = @ClickCount, [Source] = @Source, [Code] = @Code, [Remark] = @Remark, [Orders] = @Orders, [SmallImage] = @SmallImage, [BigImage] = @BigImage where ID = @ID";
        /// <summary>
        /// 
        /// </summary>
        public Int32 ID
        {
            get;
            set;
        }
        /// <summary>
        /// 
        /// </summary>
        public String Name
        {
            get;
            set;
        }
        /// <summary>
        /// 
        /// </summary>
        public Int32 DirID
        {
            get;
            set;
        }
        /// <summary>
        /// 
        /// </summary>
        public String Content
        {
            get;
            set;
        }
        /// <summary>
        /// 
        /// </summary>
        public Int32 CreatorID
        {
            get;
            set;
        }
        /// <summary>
        /// 
        /// </summary>
        public String CreatorName
        {
            get;
            set;
        }
        /// <summary>
        /// 
        /// </summary>
        public DateTime InputTime
        {
            get;
            set;
        }
        /// <summary>
        /// 
        /// </summary>
        public Int32 ClickCount
        {
            get;
            set;
        }
        /// <summary>
        /// 
        /// </summary>
        public String Source
        {
            get;
            set;
        }
        /// <summary>
        /// 编号
        /// </summary>
        public String Code
        {
            get;
            set;
        }
        /// <summary>
        /// 备注
        /// </summary>
        public String Remark
        {
            get;
            set;
        }
        /// <summary>
        /// 排序
        /// </summary>
        public Int32 Orders
        {
            get;
            set;
        }
        /// <summary>
        /// 小图
        /// </summary>
        public String SmallImage
        {
            get;
            set;
        }
        /// <summary>
        /// 大图
        /// </summary>
        public String BigImage
        {
            get;
            set;
        }
    }


}
